<template>
  <h1>
    {{ store.state.username }}
  </h1>

  <wxjButton @click="changeStoreUsername">changeStoreUsername</wxjButton>
</template>
<script lang="ts" setup>
import { useStore } from "vuex";

const store = useStore();

const changeStoreUsername = () => {
  store.commit("setusername", 18);
};
</script>
<style lang="scss" scoped>
h1 {
  color: $success;
}
</style>
